package be.donovan.gui;

import javax.swing.JMenu;
import javax.swing.JMenuBar;

import be.donovan.gui.helper.components.AbstractController;
import be.donovan.gui.helper.components.ViewI;

public class QuebakMenuBar extends JMenuBar implements ViewI {
	private AbstractController<QuebakMenuBar> controller;
	private JMenu createMenu = new JMenu("Nieuw");


	public void afterPropertiesSet() throws Exception {
		add(createMenu);
		controller.initListeners();
		controller.initData();
	}

	public AbstractController<QuebakMenuBar> getController() {
		return controller;
	}
	

	public JMenu getCreateMenu() {
		return createMenu;
	}

	public void setMenuController(AbstractController<QuebakMenuBar> menuController) {
		this.controller = menuController;
		menuController.setView(this);
	}

}
